@import "theme";

.ileader-header{
  width: 100%;
  height: auto;
  background-color: #667fc2;
  background-image: linear-gradient(#667fc2, #4b67b0);
  letter-spacing: 1px;
  position: relative;
  z-index: 100;
  .logo{
    float: left;
    margin: 17px 0;
    img{
      display: block;
      max-height: 34px;
    }
  }
  .nav-list{
    float: right;
    padding-top: 17px;
    color: @white;
    a{
      color: @white;
    }
  }
  .list-item{
    display: inline-block;
    vertical-align: middle;
    margin-left: 15px;
    .layui-input-inline{
      float: left;
    }
  }
  .list-item-after{
    margin-right: -15px;
    a{
      margin-right: 12px;
    }
  }
  .user-news{
    position: relative;
    &.active{
      &:before{
        width: 6px;
        height: 6px;
        display: inline-block;
        content: "";
        background-color: @red;
        border-radius: 50%;
        position: absolute;
        right: -2px;
        top: 1px;
      }
    }
  }
  .item-user{
    margin-left: 15px;
  }
  .user-name{
    max-width: 60px;
    display: inline-block;
    vertical-align: middle;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    margin-right: 10px;
  }
  .search-box{
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, .4);
  }
  .search-input{
    width: 130px;
    height: 32px;
    line-height: 32px;
    border: 0;
    font-size: 12px;
    letter-spacing: 1px;
    background: none;
    padding-left: 15px;
    color: @white;
    &::-webkit-input-placeholder{
      color: @white;
    }
  }
  .search-btn{
    width: 40px;
    height: 32px;
    line-height: 32px;
    padding: 0;
    border-radius: 0;
    background: none;
    &:before{
      width: 25px;
      height: 25px;
      display: inline-block;
      content: "";
      background-image: url("../images/main_icons.png");
      background-position: 0 0;
      margin: 3px 0 0 0;
    }
  }
  .user-head{
    display: inline-block;
    vertical-align: middle;
    position: relative;
    z-index: 10000;
    &:hover{
      .user-exit{
        transform: scale(1);
        opacity: 1;
      }
    }
    img{
      width: 34px;
      height: 34px;
      border-radius: 50%;
    }
  }
  .user-exit{
    padding-top: 10px;
    position: absolute;
    right: 0;
    transform: scale(0);
    opacity: 0;
    transform-origin: right top;
    transition: all .3s ease-in-out;
    .icon-exit{
      width: 25px;
      height: 25px;
      display: inline-block;
      vertical-align: -7px;
      background-image: url("../images/main_icons.png");
      background-repeat: no-repeat;
      background-position: -225px -25px;
      margin-right: 2px;
    }
    .link-exit{
      width: 140px;
      height: 40px;
      line-height: 40px;
      border-radius: @radius;
      background-color: @white;
      border: 1px solid #e6e6e6;
      color: #b3b3b3!important;
      display: block;
      padding-left: 10px;
      box-sizing: border-box;
    }
  }
}

.footer-warp{
  color: @white;
  background-color: @white;
  text-align: center;
  position: relative;
  z-index: 1000;
  .footer-nav{
    width: 100%;
    height: 170px;
    letter-spacing: 1px;
    padding: 55px 0;
    box-sizing: border-box;
    a{
      margin: 0 16px;
      color: #666;
      font-size: 16px;
      position: relative;
      z-index: 10000;
      line-height: 24px;
      display: inline-block;
      &:hover{
        color: @gray33;
      }
    }
  }
  .copyright{
    height: 90px;
    line-height: 30px;
    font-size: 12px;
    letter-spacing: 1.5px;
    padding: 30px 0;
    box-sizing: border-box;
    background-color: #667fc2;
  }
  .ewm-link{
    &:hover{
      .ewm-box{
        transform: scale(1);
        opacity: 1;
      }
    }
  }
  .ewm-box{
    width: 160px;
    border: 1px solid #ebebeb;
    border-radius: @radius;
    position: absolute;
    bottom: 30px;
    left: 50%;
    margin-left: -80px;
    background-color: @white;
    padding: 15px;
    box-sizing: border-box;
    transform: scale(0);
    opacity: 0;
    transform-origin: center bottom;
    transition: all .3s ease-in-out;
    img{
      width: 130px;
      height: 130px;
    }
    p{
      font-size: 12px;
      color: @gray70;
      letter-spacing: 1px;
      margin-bottom: 5px;
    }
  }
}

.course-details-header{
  width: 100%;
  height: 60px;
  line-height: 60px;
  background-color: @white;
  padding: 0 40px 0 0;
  box-sizing: border-box;
  position: relative;
  &.set-fixed{
    position: fixed;
    z-index: 10005;
  }
  .go-back{
    width: 60px;
    height: 60px;
    text-align: center;
    &:hover{
      background-color: #f5f5f5;
    }
    &:before{
      width: 14px;
      height: 14px;
      display: inline-block;
      content: "";
      background-image: url("../images/main_icons.png");
      background-repeat: no-repeat;
      background-position: -190px 0;
      vertical-align: -2px;
    }
  }
  .h-title{
    max-width: 350px;
    font-size: 18px;
    font-weight: bold;
  }
  .info-bar{
    a{
      color: @gray33;
      margin-left: 18px;
      &:hover{
        opacity: .6;
      }
      &.on{
        .icon-store{
          background-position: -95px -25px;
        }
        .icon-share{
          background-position: -135px -25px;
        }
      }
    }
    .icon{
      width: 15px;
      height: 15px;
      display: inline-block;
      background-image: url("../images/main_icons.png");
      background-repeat: no-repeat;
      vertical-align: -2px;
      margin-right: 6px;
    }
    .icon-store{
      background-position: -75px -25px;
    }
    .icon-share{
      background-position: -115px -25px;
    }
  }
  .nav-list{
    color: @gray33;
    a{
      color: @gray33;
      &:hover{
        color: @blue;
      }
    }
  }
  .list-item{
    margin-left: 32px;
    float: left;
  }
  .list-item-after{
    margin-left: 20px;
    margin-right: -20px;
    a{
      margin-right: 20px;
    }
  }
  .user-news{
    position: relative;
    &.active{
      &:before{
        width: 6px;
        height: 6px;
        display: inline-block;
        content: "";
        background-color: @red;
        border-radius: 50%;
        position: absolute;
        right: -2px;
        top: 1px;
      }
    }
  }
  .item-user{
    margin-left: 20px;
  }
  .user-name{
    max-width: 60px;
    display: inline-block;
    vertical-align: middle;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    margin-right: 15px;
  }
  .user-head{
    display: inline-block;
    vertical-align: middle;
    position: relative;
    z-index: 10000;
    &:hover{
      .user-exit{
        transform: scale(1);
        opacity: 1;
      }
    }
    img{
      width: 34px;
      height: 34px;
      border: 1px solid @grayCC;
      border-radius: 50%;
      box-sizing: border-box;
    }
  }
  .user-exit{
    position: absolute;
    top: 55px;
    right: 0;
    transform: scale(0);
    opacity: 0;
    transform-origin: right top;
    transition: all .3s ease-in-out;
    .icon-exit{
      width: 25px;
      height: 25px;
      display: inline-block;
      vertical-align: -7px;
      background-image: url("../images/main_icons.png");
      background-repeat: no-repeat;
      background-position: -225px -25px;
      margin-right: 2px;
    }
    .link-exit{
      width: 140px;
      height: 40px;
      line-height: 40px;
      border-radius: @radius;
      background-color: @white;
      color: @grayB3!important;
      display: block;
      padding-left: 10px;
      box-sizing: border-box;
    }
  }
}